<!DOCTYPE html>
<html lang="zh-CN">

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>TestCenter-PBOX-NewAutoTest-第348次构建日志</title></head>

  <body leftmargin="8" marginwidth="0" topmargin="8" marginheight="4" offset="0">
    <table width="95%" cellpadding="0" cellspacing="0" style="font-size: 11pt; font-family: Tahoma, Arial, Helvetica, sans-serif">
      <tbody>
        <tr>
          <td>
            <span style="color: #FF0000;">(本邮件是程序自动下发的，请勿回复！)</span></td>
        </tr>
        <tr>
          <td>
            <h2 style="color: #0000FF">调度 - {{ report_data.get('dispatcher_end_type') }}</h2></td>
        </tr>
        <tr>
          <td>
            <br />
            <b><span style="color: #0B610B">调度信息</span></b>
            <hr size="2" width="100%" align="center" /></td>
        </tr>
        <tr>
          <td>
            <ul>
              <li>名称：&nbsp;{{ report_data.get('report_name') }}</li>
              <li>级别：&nbsp;{{ report_data.get('trigger_element_type') }}</li>
              <li>调度编号：&nbsp;第{{ report_data.get('dispatcher_id') }}次构建</li>
              <li>报告编号：&nbsp;第{{ report_data.get('report_id') }}号报告</li>
              <li>触发类型：&nbsp;{{ report_data.get('dispatcher_trigger_type') }}</li>
              <li>详细报告：&nbsp;
              <a href="{{ request.url_root }}report/detail/{{ report_data.get('report_id') }}">{{ request.url_root }}report/detail/{{ report_data.get('report_id') }}</a></li>
              <li>开始时间：&nbsp;{{ report_data.get('start_time') }}</li>
              <li>结束时间：&nbsp;{{ report_data.get('end_time') }}</li>
              <li>耗时：&nbsp;{{ report_data.get('elapsed_time') }}</li>
            </ul>
          </td>
        </tr>
        <tr>
          <td>
            <br />
            <b><span style="color: #0B610B">模块执行结果统计</span></b>
            <hr size="2" width="100%" align="center" /></td>
        </tr>
        <tr>
          <td>
            <div style="font-size: 11pt; font-family: Tahoma, Arial, Helvetica, sans-serif">
              <style type="text/css">* { margin: 0; padding: 0 } html, body { width: 100%; height: 100%; font-size: 12px;} table { border-collapse: collapse; table-layout: fixed ;bgcolor:#F0E68C} td { vertical-align: baseline; font-size: 12px }</style>
              <table align="center" class="details" border="1" cellpadding="5" cellspacing="2" width="95%" bgcolor="#FAFAD2">
                <tbody>
                  <tr valign="top" bgcolor="#87CEFA" name="line">
                    <th>模块编号</th>
                    <th>模块名称</th>
                    <th>案例个数</th>
                    <th>成功</th>
                    <th>失败</th>
                    <th>错误</th>
                    <th>跳过</th>
                    <th>成功率</th>
                  </tr>
                  {% for module_result in module_results %}
                  <tr valign="top">
                    <td align="center">{{ module_result.get('module_id') }}</td>
                    <td align="center">{{ module_result.get('module_name') }}</td>
                    <td align="center" style="background-color: rgba(0,132,255,0.7)">{{ module_result.get('case_count') }}</td>
                    <td align="center" style="background-color: rgba(40,167,69,0.7)">{{ module_result.get('success_count') }}</td>
                    <td align="center" style="background-color: rgba(220,53,69,0.7)">{{ module_result.get('failure_count') }}</td>
                    <td align="center" style="background-color: rgba(205,0,204,0.7)">{{ module_result.get('error_count') }}</td>
                    <td align="center" style="background-color: rgba(108,117,125,0.7)">{{ module_result.get('skip_count') }}</td>
                    <td align="center">{{ calc_percent(module_result.get('success_count', 0), module_result.get('case_count', 0)) }}%</td>
                  </tr>
                  {% endfor %}
                  <tr valign="top" bgcolor="#87CEFA">
                    <td align="center" colspan="2">
                      <b>总计</b>
                    </td>
                    <td align="center">
                      <b>{{ report_data.get('case_count', 0) }}</b>
                    </td>
                    <td align="center">
                      <b>{{ report_data.get('success_count', 0) }}</b>
                    </td>
                    <td align="center">
                      <b>{{ report_data.get('failure_count', 0) }}</b>
                    </td>
                    <td align="center">
                      <b>{{ report_data.get('error_count', 0) }}</b>
                    </td>
                    <td align="center">
                      <b>{{ report_data.get('skip_count', 0) }}</b>
                    </td>
                    <td align="center">
                      <b>{{ calc_percent(report_data.get('success_count', 0), report_data.get('case_count', 0)) }}%</b>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
            <br/></td>
        </tr>
      </tbody>
    </table>
  </body>

</html>